package com.siao.events
{
	import flash.events.Event;
	
	/**
	 * 值对象事件
	 * @author SiaoLeon
	 */
	public class ValueEvent extends Event
	{
		// -------------------------------------------------------------------------------------------------------- 静态常量
		
		/**
		 * 值对象数据改变
		 */
		public static const CHANGE:String = "change";
		
		// -------------------------------------------------------------------------------------------------------- 静态变量
		
		// -------------------------------------------------------------------------------------------------------- 静态方法
		
		// -------------------------------------------------------------------------------------------------------- 静态函数
		
		// -------------------------------------------------------------------------------------------------------- 属性
		
		private var _name:String;
		
		/**
		 * 变更值的名称
		 * @return
		 */
		public function get name():String
		{
			return this._name;
		}
		
		private var _value:Object;
		
		/**
		 * 变更值
		 * @return
		 */
		public function get value():Object
		{
			return this._value;
		}
		
		// -------------------------------------------------------------------------------------------------------- 变量
		
		// -------------------------------------------------------------------------------------------------------- 构造
		
		/**
		 * 构造函数
		 */
		public function ValueEvent(name:String, value:Object)
		{
			super(ValueEvent.CHANGE);
			
			this._name = name;
			this._value = value;
		}
	
		// -------------------------------------------------------------------------------------------------------- 方法
	
		// -------------------------------------------------------------------------------------------------------- 函数
	
	}
}
